<?php
require_once("xforms/Core.php");

class XForms_model extends XForms_Core {
  protected $tpl='<script>$(function(){
  XForms.append(new XForms_model({renderJson},{renderChildNodes}));
});</script>';
  protected $script = '';
  function renderChildNodes($whiteList=array(), $blackList=array(), $glue = '') {
    return '['.Node::renderChildNodes(array('xforms:instance','xforms:bind','xforms:submission'),array(),',').']';
  }
}
